package com.k2data.k2app.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.k2data.k2app.constant.Constant;
import com.k2data.k2app.rest.domain.Region;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.List;

/**
 * @author lidong9144@163.com 17-3-16.
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CustomerDTO implements Serializable {

    @Transient
    private static final long serialVersionUID = -7057433153943370379L;

    private Long id;
    private String customerNo;
    private String name;
    private String type;
    private String industry;
    private Long roleId;
    private String contactPerson;
    private String tel;
    private String mobile;

    private Long groupId;
    private String address;
    private Double longitude;
    private Double latitude;
    @JsonFormat(pattern = Constant.ISO_FORMAT)
    private ZonedDateTime latestContactDate;

    private Integer count;
    private Integer onlineCount;

    private Region region;
    private List<DeviceDTO> devices;

}
